<!--{if !$_GET['inajax']}-->
<!--{eval $_G['home_tpl_titles'] = array('{lang remind}');}-->
<!--{template common/header}-->
<div id="pt" class="bm cl">
	<!--{subtemplate common/simplesearchform}-->
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
		<span>{lang prompt}</span> <em>&rsaquo;</em>
		<a href="home.php?mod=space&do=notice&ts=note">{lang remind}</a>
	</div>
</div>

<style id="diy_style" type="text/css"></style>
<div class="wp">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div id="ct" class="ct2_a wp cl">
	<div class="mn">
		<div class="bm bw0">
			<h1 class="mt"><img alt="pm" src="{STATICURL}image/feed/nts.gif" class="vm" /> {lang remind}</h1>
			<ul id="woogtv" class="tb cl">
				<li class="y"><a href="home.php?mod=spacecp&ac=privacy&op=filter" class="xi2">{lang filter_settings}</a></li>
				<!--{if $_G['setting']['my_app_status']}-->
				<li$actives[notice]><a href="home.php?mod=space&do=notice">{lang notice}</a></li>
				<li$actives[userapp]><a href="home.php?mod=space&do=notice&view=userapp">{lang applications_news}</a></li>
				<!--{else}-->
				<li$readtag[0] $readtag[1]><a href="home.php?mod=space&do=notice">{lang new_notice}</a></li>
				<li$readtag[3]><a href="home.php?mod=space&do=notice&ts=friend">Lời mời kết bạn</a></li>
				<!--{/if}-->
			</ul><br />


		<!--{if $view=='userapp' && 0 == 1}-->

			<script type="text/javascript">
				function manyou_add_userapp(hash, url) {
					if(isUndefined(url)) {
						$(hash).innerHTML = "<tr><td colspan=\"2\">{lang successfully_ignored_information}</td></tr>";
					} else {
						$(hash).innerHTML = "<tr><td colspan=\"2\">{lang is_guide_you_in}</td></tr>";
					}
					var x = new Ajax();
					x.get('home.php?mod=misc&ac=ajax&op=deluserapp&hash='+hash, function(s){
						if(!isUndefined(url)) {
							location.href = url;
						}
					});
				}
			</script>

			<div class="ct_vw cl">
				<div class="ct_vw_sd">
					<ul class="mtw">
						<!--{if $list}--><li><a href="home.php?mod=space&do=notice&view=userapp">{lang all_applications_news}</a></li><!--{/if}-->
						<!--{loop $apparr $type $val}-->
						<li class="mtn">
							<a href="home.php?mod=userapp&id=$val[0][appid]&uid=$space[uid]" title="$val[0][typename]"><img src="http://appicon.manyou.com/icons/$val[0][appid]" alt="$val[0][typename]" class="vm" /></a>
							<a href="home.php?mod=space&do=notice&view=userapp&type=$val[0][appid]"> <!--{eval echo count($val);}--> {lang unit} $val[0][typename] <!--{if $val[0][type]}-->{lang request}<!--{else}-->{lang invite}<!--{/if}--></a>
						</li>
						<!--{/loop}-->
					</ul>
				</div>
				<div class="ct_vw_mn">
					<!--{if $list}-->
						<!--{loop $list $key $invite}-->
							<h4 class="mtw mbm">
								<a href="home.php?mod=space&do=notice&view=userapp&op=del&appid=$invite[0][appid]" class="y xg1">{lang ignore_invitations_application}</a>
								<a href="home.php?mod=userapp&id=$invite[0][appid]&uid=$space[uid]" title="$apparr[$invite[0][appid]]"><img src="http://appicon.manyou.com/icons/$invite[0][appid]" alt="$apparr[$invite[0][appid]]" class="vm" /></a> 
								{lang notice_you_have} <!--{eval echo count($invite);}--> {lang unit} $invite[0][typename] <!--{if $invite[0][type]}-->{lang request}<!--{else}-->{lang invite}<!--{/if}-->
							</h4>
							<div class="xld xlda">
							<!--{loop $invite $value}-->
								<dl class="bbda cl">
									<dd class="m avt mbn">
										<a href="home.php?mod=space&uid=$value[fromuid]"><!--{avatar($value[fromuid],small)}--></a>
									</dd>
									<dt id="$value[hash]">
										<div class="xw0 xi3">$value[myml]</div>
									</dt>
								</dl>
							<!--{/loop}-->
							</div>
						<!--{/loop}-->
						<!--{if $multi}--><div class="pgs cl">$multi</div><!--{/if}-->
					<!--{else}-->
						<div class="emp">{lang no_request_applications_invite}</div>
					<!--{/if}-->
				</div>
			</div>

		<!--{else}-->

			<!--{if $_G['setting']['my_app_status']}-->
			<div class="tbmu">
				<!--{if !empty($list)}-->
					<span class="y">{lang notice_warning_message}</span>
				<!--{/if}-->
				<a href="home.php?mod=space&do=notice"$readtag[0]>{lang new_notice}</a><span class="pipe">|</span>
				<a href="home.php?mod=space&do=notice&isread=1"$readtag[1]>{lang old_notice}</a>
			</div>
			<!--{/if}-->
			<!--{if empty($list)}-->
			<div class="emp mtw ptw hm">
				<!--{if $_G[gp_isread] != 1}-->
					{lang no_new_notice}<a href="home.php?mod=space&do=notice&isread=1">{lang view_old_notice}</a>
				<!--{else}-->
					{lang no_notice}
				<!--{/if}-->
			</div>
			<!--{/if}-->
				
			<!--{if $list}-->
				<div class="xld xlda">
					
					<div class="nts">
						<!--{loop $list $key $value}-->
							<dl class="cl {if $key==1}bw0{/if}" $value[rowid] notice="$value[id]">
								<dd class="m avt mbn mlf10">
									<!--{if $value[authorid]}-->
										<a href="home.php?mod=space&uid=$value[authorid]"><!--{avatar($value[authorid],small)}--></a>
									<!--{else}-->
										<img src="{IMGDIR}/systempm.png" alt="systempm" />
									<!--{/if}-->
								</dd>
								<dd class="ntc_body" style=" padding-top:6px; $value[style]">
									$value[note]
								</dd>
                                <!--{if $value[other_author]}-->     
                                    <!--{eval 
                                        $value['other_author'] = explode(',', $value['other_author']);
                                        $count_other_author = count($value['other_author']);
                                    }-->
                                    <!--{if $count_other_author}-->
                                    <dd class="xg1 xw0">{lang other_author}:
                                    <!--{loop $value['other_author'] $keys $values}-->
                                    <!--{if $keys > 0}-->,<!--{/if}--> <a href="home.php?mod=space&username=$values" c="1">$values</a>
                                    <!--{/loop}-->
                                    </dd> 
                                    <!--{/if}-->
                                <!--{/if}-->
                                <dt><a class="d b" href="home.php?mod=spacecp&ac=common&op=ignore&authorid=$value[authorid]&type=$value[type]&handlekey=addfriendhk_{$value[authorid]}" id="a_note_$value[id]" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang shield}">{lang shield}</a>
									<span class="xg1 xw0"><!--{date($value[dateline], 'u')}--></span>
								</dt>

								<!--{if $value[from_num]}-->
								<dd class="xg1 xw0">{lang ignore_same_notice_message}</dd>
								<!--{/if}-->

							</dl>
						<!--{/loop}-->
					</div>
				</div>

				<!--{if $view!='userapp' && $space[notifications]}-->
					<div class="mtm mbm"><a href="home.php?mod=space&do=notice&ignore=all">{lang ignore_same_notice_message} <em>&rsaquo;</em></a></div>
				<!--{/if}-->

				<!--{if $multi}--><div class="pgs cl">$multi</div><!--{/if}-->
			<!--{/if}-->

		<!--{/if}-->
		</div>
	</div>
	<div class="appl">
		<!--{subtemplate home/space_prompt_nav}-->

		<div class="drag">
			<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
		</div>

	</div>
</div>

<div class="wp mtn">
	<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>

<!--{template common/footer}-->
<!--{elseif $_GET['inajax'] && $_GET['from']}-->
<!-- Template của phần các tin nhắn được lấy ra để hiển thị tại menu-->
<!--{template common/header_ajax}-->
	<!--{if $list}-->
    <div class="xld xlda">
        <!--{loop $list $key $value}-->
            <dl class="cl {if $key==1}activbw0{/if}" $value[rowid] notice="$value[id]">
                <dd class="m avt mbn mlf10">
                    <!--{if $value[authorid]}-->
                        <a href="home.php?mod=space&uid=$value[authorid]" c="1"><!--{avatar($value[authorid],small)}--></a>
                    <!--{else}-->
                        <img src="{IMGDIR}/systempm.png" alt="systempm" />
                    <!--{/if}-->
                </dd>
                <dd class="ntc_body" style=" padding-top:8px; $value[style]">
                    $value[note]
                </dd>
                <dt><a class="d b" href="home.php?mod=spacecp&ac=common&op=ignore&authorid=$value[authorid]&type=$value[type]&handlekey=addfriendhk_{$value[authorid]}" id="a_note_$value[id]" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang shield}">{lang shield}</a>
                </dt>
				<!--{if $value[other_author]}-->     
                    <!--{eval 
                        $value['other_author'] = explode(',', $value['other_author']);
                        $count_other_author = count($value['other_author']);
                    }-->
                    <!--{if $count_other_author}-->
                    <dd class="xg1 xw0">{lang other_author}:
                    <!--{loop $value['other_author'] $keys $values}-->
                    <!--{if $keys > 0}-->,<!--{/if}--> <a href="home.php?mod=space&username=$values" c="1">$values</a>
                    <!--{/loop}-->
                    </dd> 
                    <!--{/if}-->
                <!--{/if}-->
                
                <dd class="xg1 xw0"><!--{date($value[dateline], 'u')}--></dd>
                <!--{if $value[from_num]}-->
                <dd class="xg1 xw0">{lang ignore_same_notice_message}</dd>
                <!--{/if}-->

            </dl>
        <!--{/loop}-->
    </div>
    <!--{else}-->
    	<div class="emp mtw ptw hm">
            <!--{if $_G[gp_isread] != 1}-->
                {lang no_new_notice}<a href="home.php?mod=space&do=notice&isread=1">{lang view_old_notice}</a>
            <!--{else}-->
                {lang no_notice}
            <!--{/if}-->
        </div>
	<!--{/if}-->
    <script type="text/javascript">
		function manyou_add_userapp(hash, url) {
			if(isUndefined(url)) {
				$(hash).innerHTML = "<tr><td colspan=\"2\">{lang successfully_ignored_information}</td></tr>";
			} else {
				$(hash).innerHTML = "<tr><td colspan=\"2\">{lang is_guide_you_in}</td></tr>";
			}
			var x = new Ajax();
			x.get('home.php?mod=misc&ac=ajax&op=deluserapp&hash='+hash, function(s){
				if(!isUndefined(url)) {
					location.href = url;
				}
			});
		}
	</script>
<!--{template common/footer_ajax}-->
<!--{/if}-->